﻿using System.Collections.Generic;

namespace YTSK.Model
{
    /// <summary>
    /// Paddle文字识别返回对象
    /// </summary>
    public class ReconizePaddleReturn
    {
        public class Data
        {
            /// <summary>
            /// 识别置信度
            /// </summary>
            public double confidence { get; set; }

            /// <summary>
            /// 识别结果
            /// </summary>
            public string text { get; set; }

            /// <summary>
            /// 图片信息
            /// </summary>
            public List<List<int>> text_box_position { get; set; }
        }

        /// <summary>
        /// 识别结果
        /// </summary>
        public class Results
        {
            /// <summary>
            /// 识别返回data
            /// </summary>
            public List<Data> data { get; set; }

            /// <summary>
            /// 路径
            /// </summary>
            public string save_path { get; set; }
        }

        public class Root
        {
            /// <summary>
            /// 返回信息
            /// </summary>
            public string msg { get; set; }

            /// <summary>
            /// 返回结果
            /// </summary>
            public List<Results> results { get; set; }

            /// <summary>
            /// 返回状态
            /// </summary>
            public string status { get; set; }
        }
        
        /// <summary>
        /// 方法返回对象
        /// </summary>
        public class ValuePaddle
        {
            /// <summary>
            /// 识别结果
            /// </summary>
            public string text { get; set; }
            
            /// <summary>
            /// 识别置信度
            /// </summary>
            public double confidence { get; set; }
        }
    }
}